<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  <head>
    <meta name="copyright" content=
    "Copyright (c) IBM Corporation and others 2000, 2011. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css" />
    <title>
      Java Search
    </title>
  </head>
  <body>

    <h1>
      Java Search
    </h1>
    <p>
      <span>The Java searching support allows you to find declarations, references and occurrences
      of Java elements (packages, types, methods, fields). Searching is supported by an index that
      is kept up to date in the background as the resources corresponding to Java elements are
      changed. The Java search operates on workspaces independent of their build state. For
      example, searches can be conducted when auto-build is turned off.</span>
    </p>
    <p>
      The following searches can be initiated from the pop-up menus of Java elements or from the
      Java search dialog:
    </p>

    <table border="1" cellspacing="0" cellpadding="5" summary="Java search actions">
      <thead>
        <tr>
          <td>
            <p>
              <span class="control">Command</span>
            </p>
          </td>

          <td>
            <p>
              <span class="control">Description</span>
            </p>
          </td>
        </tr>
      </thead>
      <tbody>

        <tr>
          <td valign="top">
            <p>
              References
            </p>
          </td>
          <td valign="top">
            <p>
              Finds all references to the selected Java element
            </p>

          </td>
        </tr>
        <tr>
          <td valign="top">
            <p>
              Declarations
            </p>
          </td>
          <td valign="top">

            <p>
              Finds all declarations of the selected Java element
            </p>
          </td>
        </tr>
        <tr>
          <td valign="top">
            <p>
              Implementors
            </p>

          </td>
          <td valign="top">
            <p>
              Finds all implementors of the selected Java interface
            </p>
          </td>
        </tr>
        <tr>
          <td valign="top">

            <p>
              Read access
            </p>
          </td>
          <td valign="top">
            <p>
              Finds all read accesses to the selected Java field
            </p>
          </td>
        </tr>

        <tr>
          <td valign="top">
            <p>
              Write access
            </p>
          </td>
          <td valign="top">
            <p>
              Finds all write accesses to the selected Java field
            </p>

          </td>
        </tr>
        <tr>
          <td valign="top">
            <p>
              Match locations for type references
            </p>
          </td>
          <td valign="top">

            <p>
              Finds all type references at specified locations (in casts, as field type, ...)
            </p>
          </td>
        </tr>
        <tr>
          <td valign="top">
            <p>
              Occurrences in File
            </p>

          </td>
          <td valign="top">
            <p>
              Finds all occurrences of the selected Java element in its file
            </p>
          </td>
        </tr>
      </tbody>
    </table>

    <p>
      The scope of the search is defined as:
    </p>
    <p>
      <span class="control">Workspace</span> - all projects and files in the workspace are included
      in this search
    </p>
    <p>
      <span class="control">Enclosing Projects</span> - the projects enclosing the currently
      selected elements
    </p>

    <p>
      <span class="control">Hierarchy</span> - only the type hierarchy of the selected element is
      included in this search
    </p>
    <p>
      <span class="control">Working Set</span> - only resources that belong to the chosen working
      set are included in this search
    </p>

      <h3 class="related">Related References</h3>
      <a href="../reference/ref-menu-search.htm">Search actions</a><br />
      <a href="../reference/ref-dialog-java-search.htm">Java search tab</a>
  </body>
</html>
